package cn.project.domain.credit.repository;

import cn.project.domain.credit.model.aggregate.TradeAggregate;
import cn.project.domain.credit.model.entity.CreditAccountEntity;

/**
 * @author xu
 * @description 用户积分仓储
 * @date 2025/8/8
 */

public interface ICreditRepository {
    /**
     * 保存积分交易订单
     * @param tradeAggregate
     */
    void saveUserCreditTradeOrder(TradeAggregate tradeAggregate);
    /**
     * 查询用户积分账户
     * @param userId
     * @return
     */
    CreditAccountEntity queryUserCreditAccount(String userId);

}
